﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfStudy
{
    /// <summary>
    /// DrawingBoard.xaml 的交互逻辑
    /// </summary>
    public partial class DrawingBoard : Window
    {
        public DrawingBoard()
        {
            InitializeComponent();
            BoardInit();
        }

        public void BoardInit()
        {
            System.Windows.Ink.DrawingAttributes s = draw.DefaultDrawingAttributes;
            s.Width = 10;
            s.Height = 10;
            s.StylusTip = StylusTip.Rectangle;
            s.Color = (Color)ColorConverter.ConvertFromString("#43A450");
            s.FitToCurve = false;
            //s.StylusTipTransform = new Matrix(1, 0, 0, 5, 0, 0);

            /*highlighterDA = new DrawingAttributes();
            highlighterDA.Color = Colors.Orchid;
            highlighterDA.IsHighlighter = true;
            highlighterDA.IgnorePressure = true;
            highlighterDA.StylusTip = StylusTip.Rectangle;
            highlighterDA.Height = 30;
            highlighterDA.Width = 10;

            inkCanvas1.DefaultDrawingAttributes = inkDA;*/
        }
    }
}
